package com.site.model.master;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.site.util.base.po.BaseApplicationInfo;


/**
 * Code PO
 * 
 * @author Lee 2013-02-25
 */
@Entity
@Table(name = "m_code")
public class CodeInfo extends BaseApplicationInfo {

	private static final long serialVersionUID = 1L;

	private Integer codeId;

	/**
	 * Code名称
	 */
	private String codeName;

	/**
	 * Code键名
	 */
	private String codeKey;

	/**
	 * Code值
	 */
	private String codeValue;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 同组排序
	 */
	private Integer orderBy;

	@Id
	@Column(name = "CODE_ID")
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "increment")
	public Integer getCodeId() {
		return codeId;
	}

	public void setCodeId(Integer codeId) {
		this.codeId = codeId;
	}
	@Column(name = "CODE_NAME")
	public String getCodeName() {
		return codeName;
	}

	public void setCodeName(String codeName) {
		this.codeName = codeName;
	}
	@Column(name = "CODE_KEY")
	public String getCodeKey() {
		return codeKey;
	}

	public void setCodeKey(String codeKey) {
		this.codeKey = codeKey;
	}
	@Column(name = "CODE_VALUE")
	public String getCodeValue() {
		return codeValue;
	}

	public void setCodeValue(String codeValue) {
		this.codeValue = codeValue;
	}
	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "ORDER_BY")
	public Integer getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(Integer orderBy) {
		this.orderBy = orderBy;
	}

}
